* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f0f3f7;
    padding: 20px;
    min-height: 100vh;
    /* 添加背景图片 */
    background-image: url("img/background.png"); /*请在对应目录放置图片*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* 毛玻璃效果层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.8;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.4); /* 半透明白色背景 */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(5px); /* Safari 支持 */
    border: 1px solid rgba(255,255,255,0.2); /* 玻璃边框效果 */
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.control-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #3498db;
    color: white;
    transition: 0.3s;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}
.name-display {
    text-align: center;
    font-size: 3em;
    margin: 20px 0;
    padding: 30px;
    background: rgba(236, 240, 241, 0.5);
    border-radius: 10px;
    min-height: 150px;
    display: flex;
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(5px); /* Safari支持 */
    align-items: center;
    justify-content: center;
}

.lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.name-list div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.name-list span {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}
